home *** CD-ROM | disk | FTP | other *** search
- Date: Sun, 13 Feb 1994 14:09:25 +0100
- From: Oliver Teuber <hiot@helios.rz.tu-clausthal.de>
- Message-Id: <199402131309.OAA07696@helios.rz.tu-clausthal.de>
- To: mint@atari.archive.umich.edu
-
- Hello Folks
-
- this are two patches for the bin-utils patchlevel 37. i have solved?
- two errors?
-
- 1. the symbol type should be swaped on little-endian systems
- 2. the ld try to alloc a 0 (zero!) byte huge block. malloc says "No!"
- i just add 4 byte to the block-size.
-
- i detect the errors on my linux-486-box.
-
- mfg oliver
-
- p.s. xcus my bad english
- -----------------------------------------------------------------------------
-
- *** ld.c Fri Feb 11 04:36:10 1994
- --- ld.old.c Fri Jul 16 10:22:19 1993
- *************** char * str;
- *** 5026,5035 ****
- fake_out:
- sym.a_value = p->n_value;
-
- - #ifdef BYTE_SWAP
- - sym.a_type=SWAP2(sym.a_type);
- - #endif
- -
- #ifndef WORD_ALIGNED
- mywrite((char *)&sym, sizeof sym, 1, outdesc);
- if (i > 0)
- --- 5026,5031 ----
- *************** void *
- *** 6096,6102 ****
- xmalloc (size)
- int size;
- {
- ! register void *result = malloc (size+4);
- if (!result)
- fatal ("virtual memory exhausted", 0);
- return result;
- --- 6092,6098 ----
- xmalloc (size)
- int size;
- {
- ! register void *result = malloc (size);
- if (!result)
- fatal ("virtual memory exhausted", 0);
- return result;
-